-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Join nested IO actions of the form IO (IO ())
#2459
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the clean up
Are there any compiler warnings that could have prevented this? |
Isn't there a warning saying a do-block expression is discarding a result? I'd have expected that to fire here. |
Yeah, same, but it didn't. No idea why not. |
I thought we are already using |
In this pr? or could we merge it? |
This is interesting. I don't know what is going on. EDIT: this is what the ghc invocation looks like:
contains |
Let's look into some more details before merging, imo. |
I don't understand, copying that code to another project highlights correctly both occurrences. Even deleting everything except these two functions doesnt work for me, i.e. still shows only one warning. |
I found it: it's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this!
I think these are some accidental remnants of #2434.
Nothing broke for me, I just reviewed code and noticed the type of
invalidateShakeCache
was inferred toIO (IO ())
.